<html> <head> <title>Module: ..\controls\djinput</title> </head> <body bgcolor="#ffffff">
<p><i><a href="index.html">Table of Contents</a></i></p>
<table border="0" cellpadding="5" cellspacing="0" width="100%">
  <tr>
    <th rowspan="2" valign="top" align="left" width="10%" bgcolor="#88bbee"><font color="#000000">Module: ..\controls\djinput</font> </th>
    <th bgcolor="#88bbee" width="90%" align="right"><font color="#000000">djinput.py</font> </th>
  </tr>
  <tr>
  <td>
  
  <table border="0" cellpadding="5" cellspacing="0" width="100%">
<tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> methods&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">&nbsp;</font> </th>
    </tr>
    <tr>
      <td><a href="#__init__">__init__</a><br><a href="#clear">clear</a><br><a href="#delete_text">delete_text</a><br><a href="#deselect">deselect</a><br><a href="#disable_validation">disable_validation</a><br><a href="#enable_validation">enable_validation</a><br><a href="#get_selected_text">get_selected_text</a><br><a href="#get_selection">get_selection</a><br><a href="#insert_text">insert_text</a><br><a href="#scrollto_end">scrollto_end</a><br><a href="#scrollto_start">scrollto_start</a><br><a href="#select_all">select_all</a><br><a href="#select_all_binding">select_all_binding</a><br><a href="#select_range">select_range</a><br><a href="#_lookupCustomProperties">_lookupCustomProperties</a><br></td>
      </tr>
<tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="__init__"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">__init__&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>__init__( parent, strDefaultText='', **options)</pre>
	
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="clear"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">clear&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>clear()</pre>
			Delete all text.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="delete_text"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">delete_text&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>delete_text( start, stop=END)</pre>
			Delete range of text.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="deselect"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">deselect&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>deselect()</pre>
			Deselect any selection in the input
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="disable_validation"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">disable_validation&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>disable_validation()</pre>
			Turn off validation for the input field.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="enable_validation"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">enable_validation&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>enable_validation( validate, whenValidate='all', fnInvalid=None)</pre>
			Add validation to only allow certain characters in the input field. validate can either be the string 'numeric', a string in the form 'maxlength:3', or a custom function returning True or False. The custom function should take a string as an argument. whenValidate is one of 'focus','focusin','focusout','all','none'. If whenValidate is at focus, you will want to provide a fnInvalid function that will be called if the value is not valid. Use disable_validation to disable validation.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="get_selected_text"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">get_selected_text&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>get_selected_text()</pre>
			Return the text that is selected. "" (empty string) if there is no selection.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="get_selection"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">get_selection&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>get_selection()</pre>
			Return the indices of the selection. Use get_selected_text to retrieve the actual text. Position of cursor if there is no selection.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="insert_text"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">insert_text&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>insert_text( strText, bEnd=False)</pre>
			By default, inserts text into the field at the current position, replacing any current selection. If bEnd is True, appends text to the end of the field.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="scrollto_end"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">scrollto_end&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>scrollto_end()</pre>
			Scroll to the end of the input field.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="scrollto_start"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">scrollto_start&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>scrollto_start()</pre>
			Scroll to the start of the input field.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="select_all"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">select_all&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>select_all()</pre>
			Select all text in the input.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="select_all_binding"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">select_all_binding&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>select_all_binding()</pre>
			Add Ctrl+A -> select all binding
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="select_range"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">select_range&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>select_range( start, stop=END)</pre>
			Select range of text in the input.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="_lookupCustomProperties"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">_lookupCustomProperties&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>_lookupCustomProperties( bSet, strAttribute, value=None)</pre>
	
        </font></td></tr>
<tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> properties&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">&nbsp;</font> </th>
    </tr>
    <tr>
      <td><a href="#alignment">alignment</a><br><a href="#bgcolor">bgcolor</a><br><a href="#borderstyle">borderstyle</a><br><a href="#borderwidth">borderwidth</a><br><a href="#color">color</a><br><a href="#enabled">enabled</a><br><a href="#font">font</a><br><a href="#password">password</a><br><a href="#readonly">readonly</a><br><a href="#selectionbgcolor">selectionbgcolor</a><br><a href="#selectioncolor">selectioncolor</a><br><a href="#text">text</a><br><a href="#width">width</a><br></td>
      </tr>
<tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="alignment"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">alignment&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	Set alignment of text. One of 'left','right','center'.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="bgcolor"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">bgcolor&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	Background color of the input. RGB triplet, such as (255,0,0) for pure red.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="borderstyle"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">borderstyle&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	Border style. One of 'sunken','raised','groove','ridge','flat'. Default is 'sunken'.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="borderwidth"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">borderwidth&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	An integer, width of border in pixels.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="color"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">color&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	Foreground color of the input. RGB triplet.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="enabled"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">enabled&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	If False, the input is disabled, and no text can be inserted (even by code). Takes precedence over readonly.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="font"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">font&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	Set font of input. Standard tkinter font format, such as ('Times New Roman', 12, 'normal')
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="password"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">password&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	True or false. Set to True to display all characters as *.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="readonly"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">readonly&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	If True, the input is read only, but text can still be selected and copied. Has no visible effect if enabled is false.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="selectionbgcolor"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">selectionbgcolor&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	Background color of selected text. RGB triplet.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="selectioncolor"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">selectioncolor&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	Color of selected text. RGB triplet.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="text"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">text&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	String. Current contents of the input.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="width"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">width&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	Set width of input, where one unit is the width of a char. Default is 20.
        </font></td></tr>
<tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> functions&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">&nbsp;</font> </th>
    </tr>
    <tr>
      <td><a href="#_boolToShowPassword">_boolToShowPassword</a><br><a href="#_showPasswordToBool">_showPasswordToBool</a><br></td>
      </tr>
<tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="_boolToShowPassword"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">_boolToShowPassword&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>_boolToShowPassword(value)</pre>
	
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="_showPasswordToBool"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">_showPasswordToBool&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>_showPasswordToBool(value)</pre>
	
        </font></td></tr></table>  </td>   </tr>
  
</table>
<hr>
<p><i><a href="index.html">Table of Contents</a></i></p>
<font size="-2"><i>This document was automatically generated on 2008-02-29 23:29:05.511000 by something that looks like HappyDoc but isn't really.</font>
</body> </html> 